<?php if(!defined('PUBLIC_DIR')) die('No Access!');
using('System');

Cnamespace('System');
abstract class EventHandler implements iEventHandler{
	private static $Events = array();
	
	public static function AddEvent($_name, Event $_event){
		if(!array_key_exists($_name, self::$Events))
			self::$Events[$_name] = $_event;
	}
	public static function GetEvent($_name){
		if(array_key_exists($_name, self::$Events)){
			return self::$Events[$_name];
		}else{
			new Event($_name);
		}
	}
}
